﻿<phone:PhoneApplicationPage 
    x:Class="YiDingCanWp7.ShopDetailPivot"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:YiDingCanWp7"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid  x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="PanoramaBackground.png" Stretch="UniformToFill" />
        </Grid.Background>
        <toolkit:PerformanceProgressBar x:Name="performanceProgressBar"  Foreground="Red" Background="Red" IsIndeterminate="False"/>
        <!--枢轴控件-->
        <controls:Pivot Name="pivot" Title="" Foreground="Black">
            <!--枢轴项一-->
            <controls:PivotItem Header="简介">
                <Grid Name="shopdetail" >
                    <TextBlock Height="33" Foreground="#e67b08"  HorizontalAlignment="Left" Margin="46,168,0,0" Name="textBlock1" Text="电话：" VerticalAlignment="Top" Width="90" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Left" Margin="111,168,0,0" Name="TextBlock_Phone"  Text="{Binding Path=Phone}" VerticalAlignment="Top" Width="292" />
                    <TextBlock Height="33" Foreground="#e67b08" HorizontalAlignment="Left" Margin="22,215,0,0" Name="textBlock2" Text="工作时间：" VerticalAlignment="Top" Width="90" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Right" Margin="0,215,43,0" Name="TextBlock_worktime" Text="{Binding Path=WorkTime}" VerticalAlignment="Top" Width="292" />
                    <Image Height="150"  local:LowProfileImageLoader.UriSource="{Binding Logo}" HorizontalAlignment="Left" Margin="142,12,0,0" Name="image_shoplogo" Stretch="Fill" VerticalAlignment="Top" Width="200" />
                    <TextBlock Height="30" Foreground="#e67b08" HorizontalAlignment="Left" Margin="41,267,0,0" Name="textBlock_address" Text="地址：" VerticalAlignment="Top" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Left" Margin="117,273,0,0" Name="textBlock_address2" Text="{Binding Path=Address}" VerticalAlignment="Top" Width="284" />
                    <TextBlock Height="30" Foreground="#e67b08" HorizontalAlignment="Left" Margin="8,325,0,0" Name="textBlock3" Text="起送价格：" VerticalAlignment="Top" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Left" Margin="121,321,0,0" Name="upsendpricetextBlock4" Text="{Binding Path=UpSendPrice}" VerticalAlignment="Top" Width="284" />
                    <TextBlock Height="33" Foreground="#e67b08"  HorizontalAlignment="Left" Margin="4,385,0,0" TextWrapping="Wrap" Name="textBlock4" Text="配送区域：" VerticalAlignment="Top" Width="107" />
                    <TextBlock Height="57" Foreground="Black" HorizontalAlignment="Left" Margin="116,369,0,0" Name="deliverareatextBlock"  Text="{Binding Path=DeliverRegion}" VerticalAlignment="Top" Width="284" />
                    <TextBlock Height="23" Foreground="#e67b08" HorizontalAlignment="Left" Margin="0,0,0,96"  TextWrapping="Wrap" Name="textBlock5" Text="配送范围：" VerticalAlignment="Bottom" Width="130" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Left" Margin="116,453,0,0" Name="delivercircletextBlock"  Text="{Binding Path=DeliverRegion}" VerticalAlignment="Top" Width="284" />
                    <TextBlock Height="33" Foreground="#e67b08" HorizontalAlignment="Left" Margin="3,0,0,45" Name="textBlock6" TextWrapping="Wrap" Text="配送速度：" VerticalAlignment="Bottom" Width="116" />
                    <TextBlock Height="30" Foreground="Black" HorizontalAlignment="Left" Margin="109,503,0,0" Name="speedtextBlock" Text="{Binding Path=DeleverSpeed}" VerticalAlignment="Top" Width="284" />
                </Grid>
            </controls:PivotItem>

            <!--枢轴项二-->
            <controls:PivotItem Header="菜单">
                <ListBox Name="MenuList" SelectionMode="Multiple" />
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

    <!--演示 ApplicationBar 用法的示例代码-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" >
            <shell:ApplicationBarIconButton x:Name="appbar_MakeACall" Click="appbar_MakeACall_Click"   IconUri="/images/icons/phone.png" Text="电话"/>
            <shell:ApplicationBarIconButton x:Name="appbar_AddFav" Click="appbar_AddFav_Click"  IconUri="/Images/icons/appbar.favs.addto.rest.png" Text="收藏"/>
            <shell:ApplicationBarIconButton x:Name="appbar_AddComment" Click="appbar_AddComment_Click"  IconUri="/Images/icons/appbar.edit.rest.png" Text="点评"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="menuItem_ShopComments" Click="menuItem_ShopComments_Click" Text="评价列表"/>
                <shell:ApplicationBarMenuItem x:Name="menuItem_ShopFeedback" Text="反馈/编辑" Click="menuItem_ShopFeedback_Click"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    
</phone:PhoneApplicationPage>